<template>
  <div class="vote-check">
      <div>
        <img src="../../images/successCommit.png" alt="">
      </div>
      <div>提交成功，请等待管理员审核！</div>
      <div>{{second}}秒后自动跳转...</div>
      <div @click="$router.push('/')">确定</div>
  </div>
</template>

<script>
  import {parseUrlParams} from "../../util";
  let CONSTANT = require('../../../wechat/static/constant/constant.js'),
    common = require("../../../wechat/static/common/common.js"),
    wsService = require("../../../wechat/static/common/wechat-jsdk.js");

  export default {
    components: {

    },
    data () {
      return {
        second: 3
      }
    },
    mounted(){
      let self = this;
      let interval = setInterval(() => {
        if (self.second) {
          this.second--;
        } else{
          clearInterval(interval)
          self.$router.push("/")

        }
      }, 1000)
    },
    methods:{

    },
  }
</script>

<style lang="scss">
  .vote-check {
    height: 100%;
    font-size: .32rem;
    background-color: #fff;
    text-align: center;
    color: #333;
    div:nth-child(1) {
      width: 1.49rem;
      height: 1.49rem;
      margin:2.78rem auto .4rem auto;
      img {
        width: 100%;
        height: 100%;
        vertical-align: middle;
      }
    }
    div:nth-child(2) {
      font-size: .34rem;
    }
    div:nth-child(3) {
      font-size: .3rem;
      color: #999;
      margin-bottom: .61rem;
    }
    div:nth-child(4) {
      width: 2.98rem;
      height: .72rem;
      line-height: .72rem;
      text-align: center;
      color: #ffffff;
      font-size: .32rem;
      background-color: #198AE7;
      border-radius: .1rem;
      margin-left: 2.26rem;
    }
  }
</style>
